﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
namespace TinySkill
{


    public class SkillEditorSaveScene : UnityEditor.AssetModificationProcessor
    {
        static public void OnWillSaveAssets(string[] names)
        {

            foreach (string name in names)
            {
                if (name.EndsWith("SkillEditor.unity"))
                {
                    SkillEditorEngine.Save();
                }
            }
        }

    }
}